package cn.js.sip.rat.system.thymeleaf;

import cn.js.sip.rat.system.service.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: cn.js.sip.rat.system.thymeleaf
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2019-12-30   21:27
 */
@Service("config")
public class ConfigService {
    @Autowired
    private SysConfigService configService;

    /**
     * 根据键名查询参数配置信息
     *
     * @param configKey 参数名称
     * @return 参数键值
     */
    public String getKey(String configKey) {
        return configService.selectConfigByKey(configKey);
    }
}
